//
//  httpRequest.h
//  yuanlei
//
//  Created by oi on 15/7/21.
//  Copyright (c) 2015年 oi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PostHelper.h"



@interface httpRequest : NSObject

/**
 *  去登陆(原生)
 *
 *  @param username  用户名
 *  @param password  用户密码
 *  @param success 回调结果:全局ID
 */


+ (void)loginToHomePageBy:(NSString *)username :(NSString *)password :(void(^)(NSDictionary *dic))success;
/**
 *  得到首页的轮播图
 */
+ (void)getHomeBannerImgComplement:(void(^)(NSDictionary *dic))success;

/**
 *  得到首页的视频
 *
 *  @param success 返回视频url等参数
 */
+ (void)getHomeVideoComplement:(void(^)(NSDictionary *dic))success;



/**
 *  得到更多视频列表
 *
 *  @param categoryID 视频类型
 *  @param page       分页页码
 *  @param success    成功回调
 */
+ (void)getMoreThanVideo:(NSString *)categoryID
                        :(NSString *)page
              Complement:(void(^)(NSDictionary *dic))success;

/**
 *  得到人气榜的数据
 *
 *  @param page    分页页码
 *  @param success 成功回调
 */
+ (void)getPersonPopNum:(NSString *)page
             Complement:(void(^)(NSDictionary *dic))success;

/**
 *  点赞
 *
 *  @param dianZanID 点赞ID
 *  @param success   成功回调
 */

+ (void)dianZanISSuccess:(NSString *)dianZanID
             Complement:(void(^)(NSDictionary *dic))success;

/**
 *  关注
 *
 *  @param guanzhuID 关注UID
 *  @param success   成功回调
 */
+ (void)guanZhuISSuccess:(NSString *)guanzhuID
              Complement:(void(^)(NSDictionary *dic))success;

/**
 *  上传头像
 *
 *  @param userData 头像数据
 *  @param success  成功回调
 */
+ (void)updateUserPhotoBy:(NSData *)userData
               Complement:(void(^)(NSDictionary *dic))success;


/**
 *  得到个人信息
 *
 *  @param success 成功回调
 */
+ (void)getPersonInfoComplement:(void(^)(NSDictionary *dic))success;


/**
 *  得到速度激情详情头部数据
 *
 *  @param questionID qustionid
 *  @param success    成功回调
 */
+ (void)getVideoInfoBy:(NSString *)questionID
            Complement:(void(^)(NSDictionary *dic))success;

//
//+ (void)getPersonInfoComplement:(void(^)(NSDictionary *dic))success;
/**
 *  得到速度激情详情评论数据
 *
 *  @param questionID qustionID
 *  @param page       分页页码
 *  @param success    成功回调
 */
+ (void)getPostInfoBy:(NSString *)questionID
                     :(NSString *)page
           Complement:(void(^)(NSDictionary *dic))success;

/**
 *  一级回复
 *
 *  @param questionID    视频ID
 *  @param answerContent 回复内容
 *  @param success       成功回调
 */
+ (void)sendMessageInfoBy:(NSString *)questionID
                     :(NSString *)answerContent
           Complement:(void(^)(NSDictionary *dic))success;


/**
 *  一级回复
 *
 *  @param questionID    评论ID
 *  @param answerContent 回复内容
 *  @param success       成功回调
 */

+ (void)sendSecondMessageInfoBy:(NSString *)answerID
                         :(NSString *)message
               Complement:(void(^)(NSDictionary *dic))success;

/**
 *  收藏
 *
 *  @param questionID 视频ID
 *  @param success    成功回调
 */
+ (void)collectionTheVideoBy:(NSString *)questionID

                     Complement:(void(^)(NSDictionary *dic))success;




@end;